import { App } from 'vue'
import ActionSheet from './ActionSheet'
import { api } from './api'

export function install(app: App, options: Record<string, any> = {}): void {
	app.config.globalProperties.$actionSheet = api(options)
	app.component('actionSheet', ActionSheet)
}
